package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 comments
 *
 * @author xrx
 * @date 2024-05-07
 */
public class Comments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long projectId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String text;

    /** 1:需求 2：课题 3：成果，4：回复 */
    @Excel(name = "1:需求 2：课题 3：成果，4：回复")
    private Integer type;

    /** 评论目标用户id */
    @Excel(name = "评论目标用户id")
    private Long toUid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getProjectId()
    {
        return projectId;
    }
    public void setText(String text)
    {
        this.text = text;
    }

    public String getText()
    {
        return text;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setToUid(Long toUid)
    {
        this.toUid = toUid;
    }

    public Long getToUid()
    {
        return toUid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("projectId", getProjectId())
                .append("text", getText())
                .append("createTime", getCreateTime())
                .append("type", getType())
                .append("toUid", getToUid())
                .toString();
    }
}
